package com.tanhua.controller;

import com.tanhua.service.HuanxinService;
import com.tanhua.vo.HuanxinVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/huanxin")
public class HuanxinController {

    @Autowired
    private HuanxinService huanxinService;

    @GetMapping("/user")
    public ResponseEntity findHuanxinUser(){
        HuanxinVo vo = huanxinService.findHuanxinUser();
        return ResponseEntity.ok(vo);
    }

}
